<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
	<title>dhtmlxGrid. Server side</title>
	<script src="<c:out value="${pageContext.request.contextPath}"/>/resources/tutorial/common/dhtmlx/dhtmlx.js" type="text/javascript"></script>
	<script type="text/javascript" src="<c:out value="${pageContext.request.contextPath}"/>/resources/tutorial/common/jquery-2.1.3.min.js"></script>
	<link rel="stylesheet" type="text/css" href="<c:out value="${pageContext.request.contextPath}"/>/resources/tutorial/common/dhtmlx/dhtmlx.css"/>
	<style>
		html, body {
			width: 100%;
			height: 100%;
			overflow: hidden;
			margin: 0px;
		}
	</style>
</head>
<body>
	<div id="mygrid_container" style="width:600px; hright:160px; float:left;"></div>
	<script type="text/javascript">
		var contextPath = "${pageContext.request.contextPath}" + "/resources/tutorial";
	
		var mygrid = new dhtmlXGridObject("mygrid_container");
		mygrid.setImagePath(contextPath + "/common/dhtmlx/imgs/");
		mygrid.setHeader("Name,Quantiy,Price");
		mygrid.setColumnIds("fname,lname,email");
		mygrid.init();
	</script>
</body>
</html>